using Microsoft.AspNetCore.Authorization;

namespace BootBlazor.Servers.Auth;

public class ApiAuthorizeHandler : AuthorizationHandler<ApiAuthorizeRequirement>
{
    protected override Task HandleRequirementAsync(AuthorizationHandlerContext context, ApiAuthorizeRequirement requirement)
    {
        context.Succeed(requirement);
        return Task.CompletedTask;
    }
}
